<template>
	<view class="content">
		<rich-text :nodes="article"></rich-text>
		
	</view>
</template>

<script>
	import {
		getArticleCategoryList
	} from '@/api/getarticlecategorylist.js'
	import {
		getArticleList
	} from '@/api/getArticleList.js'
	export default {
		data() {
			return {
				article:'',
			};
		},
		onLoad() {
			this.init();
		},
		onShow() {
			
		},
		methods:{
			init() {
				getArticleCategoryList({webClient:'app'}).then(res => {
					console.log(res)
					var articleId = res.data.categoryList[0].articles[0].id
					
					getArticleList({articleId:articleId}).then(deta => {
						console.log(deta)
						this.article = deta.data.articleList[0].content
					})
				})
			}
		}
	}
</script>

<style lang="scss">
	.content{
		padding: 30rpx;
	}
	.rule{
		color: #595757;
		font-size: 28rpx;
	}
	.rule .title {
	    font-size: 32rpx;
	    margin-bottom: 50rpx;
		text-align: center;
	}
	
	.rule .t1 {
	    line-height: 2;
		margin-bottom: 50rpx;
	}
	
	.rule .t2 {
	    font-weight: bold;
	    font-size: 24rpx;
		margin-bottom: 25rpx;
		color: #1a1a1a;
	}
	
	.rule .red {
	    color: #C10016;
		margin-bottom: 20rpx;
	}
	.rule .c1 {
	    line-height: 2;
	    margin-bottom: 40rpx;
	}
	
	.rule .weight4 {
	    font-weight: 400;
	}
	
	.rule .form {
	    width: 100%;
	}
	
	.rule .form.center {
	    text-align: center;
	    padding: .15rem 0;
	}
	
	.rule .form table {
	    border-top: 1px solid #555555;
	    border-left: 1px solid #555555;
	    width: 100%;
	}
	
	.rule .form table td {
	    line-height: .24rem;
	    font-size: .16rem;
	}
	
	.rule .form table th,
	.rule .form table td {
	    border-right: 1px solid #555555;
	    padding: 0.18rem 0;
	    border-bottom: 1px solid #555555;
	}
	
	.rule dl {
	    max-width: 11.20rem;
	    display: flex;
	    text-align: center;
	    padding: .2rem 0;
	    font-weight: 200;
	}
	
	.rule dl .Icon {
	    min-height: 55px;
	    display: flex;
	    align-items: center;
	    margin-bottom: .3rem;
	    justify-content: center;
	}
	
	.rule dl dd {
	    flex-grow: 1;
	}
	
	.rule dl dd:not(:last-child) {
	    border-right: 1px solid #EDEDED;
	}
	
	.rule dl dd .txt2 {
	    padding-top: .15rem;
	    color: #666666;
	    font-size: 14px;
	}

</style>
